#ifndef DIALOG_H
#define DIALOG_H
#include "inputdlg.h"

#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QTextEdit>
#include <QComboBox>
#include <QGridLayout>
#include <QPushButton>

class Dialog : public QDialog
{
    Q_OBJECT

public:
    Dialog(QWidget *parent = 0);
    ~Dialog();
private slots:
    void ShowInputDlg();

private:
    QLabel *username;
    QLineEdit *usernameLineEdit;
    QLabel *name;
    QLineEdit *nameLineEdit;
    QLabel *sex;
    QLineEdit *sexLineEdit;
    QLabel *department;
    QTextEdit *departmentTextEdit;
    QLabel *age;
    QLineEdit *ageLineEdit;
    QLabel *other;
    QGridLayout *leftLayout;

    QLabel *headImage;
    QLabel *headIconLabel;
    QPushButton *upDate;
    QLabel *introduceLabel;
    QTextEdit *introduceTextEdit;
    QVBoxLayout *rightLayout;

    QPushButton *OkBtn;
    QPushButton *CancelBtn;
    QHBoxLayout *ButtonLayout;

    QPushButton *inputBtn;
    InputDlg *inputDlg;

};

#endif // DIALOG_H
